package com.chixing.day06.JiChengStaticDemo.getOnceErgodic;

/**
 * 延迟(懒汉)模式
 */
public class Bank1 {
    private static Bank1 bank = null;
    private Bank1(){}
    public static Bank1 getInstance(){
        if (bank == null)
            bank = new Bank1();
        return bank;
    }
}
